package com.findFish.fish.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.findFish.common.annotation.Excel;
import com.findFish.common.core.domain.BaseEntity;

/**
 * 鱼类收获记录对象 fish_harvest
 * 
 * @author admin
 * @date 2025-04-01
 */
public class FishHarvest extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收货记录ID */
    private Long id;

    /** 鱼类种群ID */
    @Excel(name = "鱼类种群ID")
    private Long fishPopulationId;

    /** 收获日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收获日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date harvestDate;

    /** 收获数量（条） */
    @Excel(name = "收获数量", readConverterExp = "条=")
    private Long quantity;

    /** 销售金额（元） */
    @Excel(name = "销售金额", readConverterExp = "元=")
    private BigDecimal sales;

    /** 购买者 */
    @Excel(name = "购买者")
    private String buyer;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setFishPopulationId(Long fishPopulationId) 
    {
        this.fishPopulationId = fishPopulationId;
    }

    public Long getFishPopulationId() 
    {
        return fishPopulationId;
    }

    public void setHarvestDate(Date harvestDate) 
    {
        this.harvestDate = harvestDate;
    }

    public Date getHarvestDate() 
    {
        return harvestDate;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setSales(BigDecimal sales) 
    {
        this.sales = sales;
    }

    public BigDecimal getSales() 
    {
        return sales;
    }

    public void setBuyer(String buyer) 
    {
        this.buyer = buyer;
    }

    public String getBuyer() 
    {
        return buyer;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fishPopulationId", getFishPopulationId())
            .append("harvestDate", getHarvestDate())
            .append("quantity", getQuantity())
            .append("sales", getSales())
            .append("buyer", getBuyer())
            .toString();
    }
}
